import request from '../request'

//患者添加问诊病情描述
export const addQuestionOrder = params => request.globalRequest(`aos/questionOrder/addQuestionOrder`, 'POST', params)

//患者问诊订单列表
export const myQuestionOrder = params => request.globalRequest(`aos/questionOrder/myQuestionOrder`, 'GET', params)

//问诊订单ID
export const fetchQuestionOrderId = params => request.globalRequest(`aos/questionOrder/fetchQuestionOrderId`, 'POST', params)

//患者问诊订单详情
export const questionOrderDetail = params => request.globalRequest(`aos/questionOrder/questionOrderDetail/${params.params.id}`, 'GET', params, false)

//医生问诊订单
export const doctorQuestionOrder = params => request.globalRequest(`aos/questionOrder/doctorQuestionOrder`, 'GET', params, false)

//医生抢单中心
export const orderCenter = params => request.globalRequest(`aos/questionOrder/orderCenter`, 'GET', params, false)

//医生抢单
export const robOrder = params => request.globalRequest(`aos/questionOrder/robOrder/${params.params.id}`, 'PUT', params)

//医生结算问诊订单
export const manualUpdateQuestionStatus = params => request.globalRequest(`aos/questionOrder/manualUpdateQuestionStatus/${params.params.id}`, 'PUT', params)

//接诊-退诊
export const clinicalReception = params => request.globalRequest(`aos/questionOrder/clinicalReception/${params.params.id}/${params.params.status}`, 'GET', params)

//患者列表一个人只显示一次
export const patientListOnDoctor = params => request.globalRequest(`aos/client/patient/patientListOnDoctor`, 'GET', params, false)

//患者处方
export const listById = params => request.globalRequest(`aos/userRecipe/listById`, 'GET', params, false)